import { Login } from "@/api/interface/index";
import { PORT1 } from "@/api/config/servicePort";
// import qs from "qs";

import http from "@/api";

/**
 * @name 公共模块API
 */
// 获取oss上传参数
export const getOssParams = () => {
    return http.get<Login.ResLogin>(PORT1 + `/upload/get-oss-params`, {}); // post 请求携带 query 参数  ==>  ?username=admin&password=123456
};
// 获取所有游戏
export const getAllGame = () => {
    return http.get<Login.ResLogin>(PORT1 + `/game/all_game_list`, {});
}
// 账号标签
export const getAccountTag = () => {
    return http.get<Login.ResLogin>(PORT1 + `/common/account_tag/all`, {});
}
// 商户列表
export const getMerchantList = () => {
    return http.get<Login.ResLogin>(PORT1 + `/platform/all_platform`, {});
}
